package com.lowca.news.web.formbean;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class AddArticleForm {

	@NotEmpty
	@Length(min = 1, max = 150)
	private String subject;
	@NotEmpty
	@Length(min = 1, max = 20000)
	private String content;
	private String summary;
	@NotEmpty
	@Length(min = 1, max = 20)
	private String author;
	@NotEmpty
	@Length(min = 1, max = 20)
	private String source;
	private Boolean parseSummary = Boolean.FALSE;
	private Boolean published = Boolean.TRUE;
	private Boolean containImage = Boolean.FALSE;
	private Long categoryId;
	@NotEmpty
	@Length(min = 1, max = 100)
	private String tags;

	public AddArticleForm() {
		super();
	}

	public AddArticleForm(String subject, String content, String summary,
			String author, String source, Boolean parseSummary,
			Boolean published, Boolean containImage, Long categoryId,
			String tags) {
		super();
		this.subject = subject;
		this.content = content;
		this.summary = summary;
		this.author = author;
		this.source = source;
		this.parseSummary = parseSummary;
		this.published = published;
		this.containImage = containImage;
		this.categoryId = categoryId;
		this.tags = tags;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Boolean getParseSummary() {
		return parseSummary;
	}

	public void setParseSummary(Boolean parseSummary) {
		this.parseSummary = parseSummary;
	}

	public Boolean getPublished() {
		return published;
	}

	public void setPublished(Boolean published) {
		this.published = published;
	}

	public Boolean getContainImage() {
		return containImage;
	}

	public void setContainImage(Boolean containImage) {
		this.containImage = containImage;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

}
